

export default {
    props: {
        to: { type: String, require: true },
        tag: { type: String, default: "span" }
    },
    methods: {
        handler() {
            this.$router.push(this.to)
        }
    },
    render() {
        let tag = this.tag
        return <tag onClick={this.handler}>{this.$slots.default}</tag>
    }
}